<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">

	<title>修改员工信息</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link  type="text/css" rel="stylesheet"  href="<%=request.getContextPath()%>/static/index/css/style.css"/>
	<link  type="text/css" rel="stylesheet"  href="<%=request.getContextPath()%>/static/index/css/index.css"/>
	<script  src="/static/js/jquery.min.js"></script>
	<!-- 动态菜单JS -->
	<script type="text/javascript"  src="/static/js/menu.js"></script>
	<style type="text/css">
		span {
			color: red;
		}

		h1 {
			text-align: center;
			line-height: 30px;
		}

		td {
			line-height: 30px;
		}
	</style>

	<script type="text/javascript" src="static/js/jquery.min.js"></script>

</head>

<body>
<script type="text/javascript">
    function index(){
        location.href="<%=path%>/user/userlist";//跳转到首页信息列表
    }
</script>
<%--顶部公共部分--%>
<jsp:include page="common/top.jsp" />
<div class="left-menu" style="height:949px;">
	<%--左侧菜单列表--%>
	<jsp:include page="common/left-menu-list.jsp" />
</div>
<div class="right-menu">
	<div class="main-hd">
		<div class="page-teb" >
			<div class="l-tab-links">
				<ul style="left:0;">
					<li class="l-select">
						<a href="/user/index">首页</a>
					</li>
					<li class="l-select">
						<a href="#">员工管理</a>
					</li>
				</ul>
			</div>
			<div style="align-content: center">
				<form action="<%=path %>/user/userupd" method="post" id="form">
					<div style="width: 600px; padding:10px 30px;border: 1px solid #000;">
						<h1>修改员工信息</h1>
						<table cellpadding="0" cellspacing="0" border="1" width="100%">
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									身份证号码:<input type="hidden" name="username" value="${userEntity.username}"></td>

								<td align="left" style="padding-left: 10px;">
									<input type="text" name="identity" id="identity" value="${userEntity.identity}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									全名:</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="fullname" id="fullname" value="${userEntity.fullname}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>性别</span>
								</td>
								<td class="item-input">
									<label class="item-label"><i>*</i>男</label>
									<input type="radio"  id="male" name="sex" value="男"  checked="checked">

									<label class="item-label"><i>*</i>女</label>
									<input type="radio"  id="female" name="sex" value="女">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									地址</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="address" id="address"  value="${userEntity.address}">
								</td>
							</tr>

							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									电话</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="phone" id="phone"  value="${userEntity.phone}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									职业</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="position" id="position"  value="${userEntity.position}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									职位级别</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="userlevel" id="userlevel"  value="${userEntity.userlevel}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									密码</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="userpwd" id="userpwd"  value="${userEntity.userpwd}">
								</td>
							</tr>
							<tr>
								<td align="right" style="padding-right: 10px;"><span>*</span>
									QQ号</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="userQQ" id="userQQ"  value="${userEntity.userQQ}">
								</td>
							</tr>

							<tr>
								<td align="right" style="padding-right: 10px;">注册日期（yyyy-MM-dd):</td>
								<td align="left" style="padding-left: 10px;"><input
										type="text" name="USERDLDATE" id="USERDLDATE"  value="<fmt:formatDate
							value="${userEntity.USERDLDATE}" pattern="yyyy-MM-dd" />">
								</td>
							</tr>
							<tr>
								<td align="center" colspan="2" style="padding: 10px;"><input
										type="submit" value="保存"> <input type="button" value="取消" onclick="index()">
								</td>
							</tr>
						</table>
					</div>
				</form></div>
		</div>
	</div>
</div>
</body>
</html>
